package com.zeny.xdclass.service;

import com.zeny.xdclass.domain.VideoOrder;
import com.zeny.xdclass.dto.VideoOrderDto;
import org.apache.ibatis.annotations.Param;

/**
 * @Description 订单接口
 **/
public interface VideoOrderService {

    /**
     * @Description 下单接口
     * @param videoOrderDto
     * @return com.zeny.xdclass.domain.VideoOrder
     **/
    String save(VideoOrderDto videoOrderDto) throws Exception;

    /**
     * 根据交易订单号获取订单对象
     * @param outTradeNo
     * @return
     */
    VideoOrder findByOutTradeNo(@Param("outTradeNo") String outTradeNo);

    /**
     * 根据订单流水号更新
     * @param videoOrder
     * @return
     */
    int updateVideoOderByOutTradeNo(VideoOrder videoOrder);

}
